package com.ruoyi.system.service;

import com.ruoyi.system.domain.vo.PStoreProductReplyVo;
import com.ruoyi.system.domain.bo.PStoreProductReplyBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 评论Service接口
 *
 * @author ruoyi
 * @date 2022-08-01
 */
public interface IPStoreProductReplyService {

    /**
     * 查询评论
     */
    PStoreProductReplyVo queryById(Long id);

    /**
     * 查询评论列表
     */
    TableDataInfo<PStoreProductReplyVo> queryPageList(PStoreProductReplyBo bo, PageQuery pageQuery);

    /**
     * 查询评论列表
     */
    List<PStoreProductReplyVo> queryList(PStoreProductReplyBo bo);

    /**
     * 修改评论
     */
    Boolean insertByBo(PStoreProductReplyBo bo);

    /**
     * 修改评论
     */
    Boolean updateByBo(PStoreProductReplyBo bo);

    /**
     * 校验并批量删除评论信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
